<?php

use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;

class CreateTempPhoneTable extends Migration
{
    /**
     * Run the migrations.
     * 手机验证码表
     * @return void
     */
    public function up()
    {
        Schema::create('temp_phone', function (Blueprint $table) {
            $table->string('phone',11);
            $table->string('code');
            $table->integer('deadline');
        });
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
        Schema::dropIfExists('temp_phone');
    }
}
